class crond::zombie {
  case $zombie_type {
    'gpu': {
      file { "/root/bin/zombie.py":
        mode       =>  '755',
        owner      =>  'root',
        group      =>  'root',
        source     =>  "puppet:///modules/crond/zombie_gpu.py",
        require  => File['/root/bin'],
      }
      cron{ 'zombie':
        command => "/root/bin/zombie.py",
        user    => 'root',
        minute  => '*/3',
        hour    => '*',
        month   => '*',
      }
    }
    'mpi': {
      file { "/root/bin/zombie.py":
        mode       =>  '755',
        owner      =>  'root',
        group      =>  'root',
        source     =>  "puppet:///modules/crond/zombie_mpi.py",
        require  => File['/root/bin'],
      }
      cron{ 'zombie':
        command => "/root/bin/zombie.py",
        user    => 'root',
        minute  => '0',
        hour    => '*/3',
        month   => '*',
      }
    }
    default: {
      file { "/root/bin/zombie.py":
        mode       =>  '755',
        owner      =>  'root',
        group      =>  'root',
        source     =>  "puppet:///modules/crond/zombie.py",
        require  => File['/root/bin'],
      }
      cron{ 'zombie':
        command => "/root/bin/zombie.py",
        user    => 'root',
        minute  => 12,
        hour    => '*/1',
        month   => '*',
      }
    }
  }
}
